"use strict";
var _baseComponent = _interopRequireDefault(require("../helpers/baseComponent")),
  _classNames2 = _interopRequireDefault(require("../helpers/classNames"));

function _interopRequireDefault(e) {
  return e && e.__esModule ? e : {
    default: e
  }
}

function _defineProperty(e, t, r) {
  return t in e ? Object.defineProperty(e, t, {
    value: r,
    enumerable: !0,
    configurable: !0,
    writable: !0
  }) : e[t] = r, e
}(0, _baseComponent.default)({
  properties: {
    prefixCls: {
      type: String,
      value: "wux-navbar"
    },
    theme: {
      type: String,
      value: "light"
    },
    title: {
      type: String,
      value: ""
    },
    leftText: {
      type: String,
      value: ""
    },
    rightText: {
      type: String,
      value: ""
    }
  },
  computed: {
    classes: ["prefixCls, theme", function (e, t) {
      return {
        wrap: (0, _classNames2.default)(e, _defineProperty({}, "".concat(e, "--").concat(t), t)),
        left: "".concat(e, "__left"),
        text: "".concat(e, "__text"),
        title: "".concat(e, "__title"),
        right: "".concat(e, "__right")
      }
    }]
  },
  methods: {
    onClick: function (e) {
      var t = e.currentTarget.dataset.type;
      this.triggerEvent("click", {
        type: t
      })
    }
  }
});